package com.gandong8.hbase.web.domain;

import com.gandong8.hbase.tool.annotation.HbaseColumn;
import com.gandong8.hbase.tool.annotation.HbaseTable;
import com.gandong8.hbase.tool.domain.ConstantDO;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表
 */
@HbaseTable(name="order")
@Data
public class OrderDO implements Serializable {
    private static final long serialVersionUID = -8617552390430975042L;

    @HbaseColumn(family= ConstantDO.ROW_KEY, qualifier="id")
    private Long id;
    @HbaseColumn(family="order", qualifier="create")
    private Date createTime;
    @HbaseColumn(family="order", qualifier="price")
    private BigDecimal price;
    @HbaseColumn(family="order", qualifier="status")
    private Byte status;
    @HbaseColumn(family="user", qualifier="user_id")
    private Integer userId;
    @HbaseColumn(family="user", qualifier="address")
    private String address;
    @HbaseColumn(family="user", qualifier="mobile")
    private String mobile;
    @HbaseColumn(family="item", qualifier="item_id")
    private Integer itemId;
    @HbaseColumn(family="item", qualifier="item_name")
    private String itemName;
    @HbaseColumn(family="item", qualifier="item_price")
    private BigDecimal itemPrice;

}
